export const wsEvents = {
  CONNECT: 'connect',
  DISCONNECT: 'disconnect',
  ERROR: 'error',
  NEW_MESSAGE: 'new_message',
  TYPING_START: 'typing_start',
  TYPING_END: 'typing_end',
  MESSAGE_DELIVERED: 'message_delivered',
  MESSAGE_READ: 'message_read',
  CHAT_HISTORY: 'chat_history',
  MESSAGE_RECEIVED: 'message_received',
  MESSAGE_ANALYZING: 'message_analyzing',
  MESSAGE_PLANNING: 'message_planning',
  MESSAGE_EXECUTING: 'message_executing',
  MESSAGE_RESPONDING: 'message_responding',
  MESSAGE_COMPLETED: 'message_completed',
  JOIN_CHAT: 'join_chat',
  SEND_MESSAGE: 'send_message',
  TYPING: 'typing',
  AUTH_REQUEST: 'auth_request',
  AUTH_SUCCESS: 'auth_success',
  AUTH_FAILURE: 'auth_failure',
  REGISTER_REQUEST: 'register_request',
  REGISTER_SUCCESS: 'register_success',
  REGISTER_FAILURE: 'register_failure',
  GET_CHAT_LIST: 'get_chat_list',
  CHAT_LIST: 'chat_list'
} as const;

export type WsEventType = typeof wsEvents[keyof typeof wsEvents];
